package com.liming.common.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author liming
 * @date 2025/1/15
 */
@Data
@Schema(description = "分页VO")
public class PageVO<R> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "当前页码")
    private long current;

    @Schema(description = "每页大小")
    private long size;

    @Schema(description = "当前页数据")
    private List<R> records;

    @Schema(description = "总页数")
    private long pages;

    @Schema(description = "总记录数")
    private long total;
}
